from django.db import models
from django.utils.translation import ugettext as _
from django.contrib.auth.models import User
from glowdrop.location.models import Location

class Note(models.Model):

    content = models.TextField(_('content'), max_length=200)
    pub_date = models.DateTimeField(_('publish date'), auto_now=True)
    author = models.ForeignKey(User)

class Comment(models.Model):

    content = models.TextField(_('content'), max_length=200)
    pub_date = models.DateTimeField(_('publish date'), auto_now=True)
    author = models.ForeignKey(User)
    note = models.ForeignKey(Note)
